<?php
  $name = @$_GET["name"];
  // $name = htmlspecialchars($name);

echo "
<script type='text/javascript' src='jquery.js'></script>

<script type='text/javascript'>
$(document).ready(function(){
	$('#text').html(".json_encode(htmlspecialchars($name)).");
})
</script>";
 ?>



 <input type='text' value='<?php echo $name?>' >
 <input type="text" id="text" name="" value="">
